<?php
/**
(c) 2009 Philip Clarke, Bouncing Limited.

Self standing module code for  Modules.
Redestribution not permitted.

**/

define('BOX_TOOLS_OVERLAY_MENU_TEXT', 'Overlay Styles');
define('FILENAME_CSS_OVERLAY', 'overlay.php');
define('DIR_FS_CATALOG_OVERLAYS', DIR_FS_CATALOG.'includes/jquery/overlays/');
// define('HEADING_MAIN_OVERLAY_TEXT', 'Styles Overlay');
// define('TABLE_RENAME_THIS', DB_PREFIX.'rename_this');

// set up template width and additional db column
if(!defined('SHOPUPGRADED_MAIN_WRAPPER_WIDTH')){
  $sql = "INSERT INTO `".TABLE_CONFIGURATION."` (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, date_added, use_function, set_function) VALUES ('Page Width - Main layout', 'SHOPUPGRADED_MAIN_WRAPPER_WIDTH', '960px', 'Width of the Right Column<br />px may be included<br />Default = 960px', 19, NOW(), NULL, NULL)";

  $db->Execute($sql);

    $sql = "DESCRIBE `".TABLE_TEMPLATE_SELECT."` template_overlay";

    $q = $db->Execute($sql);

    if($q->RecordCount()==0){
      $sql = "ALTER TABLE ".TABLE_TEMPLATE_SELECT." ADD COLUMN template_overlay VARCHAR(255) NOT NULL";
      $db->Execute($sql);
    }
}

if(!defined('SHOPUPGRADED_TEXT_LINK_CSS')){

  $sql = "INSERT INTO `".TABLE_CONFIGURATION."` (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, date_added, use_function, set_function) VALUES ('Shop Upgraded Background templates - main page text style', 'SHOPUPGRADED_TEXT_FONT_CSS', 'color: #000000;', 'Style/ colour of text for templates with a coloured background. (otherwise it can appear white on a white background.)', 19, NOW(), NULL, NULL)";

  $db->Execute($sql);

  $sql = "INSERT INTO `".TABLE_CONFIGURATION."` (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, date_added, use_function, set_function) VALUES ('Shop Upgraded Background templates - text link style', 'SHOPUPGRADED_TEXT_LINK_CSS', 'color: #0000ff; text-decoration: underline', 'Style/ colour of links for templates with a coloured background. (otherwise they appear white)', 19, NOW(), NULL, NULL)";

  $db->Execute($sql);

}

